/**
 * @description error routers
 * **/


const router = require('koa-router')()

router.get('/error', async function (ctx, next) {
  await ctx.render('error')
})

router.get('*', async (ctx,next) => {
  await ctx.render('404')
})

module.exports = router